package com.api.demo.dto.sync;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;

/**
 * @description: 同步接口-退票DTO
 * @author: yanming
 * @createDate: 2022/10/13 09:12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "同步接口-退票DTO")
public class SyncDataRefundDTO extends SyncDataDTO {


    private static final long serialVersionUID = -8145178352573064363L;
    @ApiModelProperty(value = "子订单ID")
    @NotBlank(message = "子订单ID不能为空")
    private String orderInfoId;

    @ApiModelProperty(value = "回单")
    @URL(message = "回单链接异常")
    @NotBlank(message = "回单不能为空")
    private String url;

    @ApiModelProperty(value = "退票原因")
    @NotBlank(message = "退票原因不能为空")
    private String refundDesc;
}